using System.Threading.Tasks;
using MinimalistFoodStreet.BackEnd.Infrastructure.Attributes;
using MinimalistFoodStreet.BackEnd.Infrastructure.Dtos.Request.Tables;
using MinimalistFoodStreet.BackEnd.Infrastructure.Dtos.Response;

namespace MinimalistFoodStreet.BackEnd.Server.IServer.Tables 
{
	[ProvideClassOrInterface]
	public interface IDictionarysServer 
	{
		Task<ResponseApiDto> AddAsync(RequestCreateDictionarysDto dto) ;
		Task<ResponseApiDto> UpdateAsync(RequestUpdateDictionarysDto dto) ;
		Task<ResponseApiDto> DeleteAsync(RequestDeleteDictionarysDto dto) ;
		Task<ResponseApiDto> DetailAsync(int id) ;
		Task<ResponseApiDto> PaginationAsync(int page, int limit,string? key) ;
        Task<ResponseApiDto> GetSunDictionaryByDTId(int id);
		Task<ResponseApiDto> GetSunDictionaryByParentId(int id);
		Task<ResponseApiDto> GetDictionaryBySearchKey(string searchKey);
    }
}